package com.wh1200.mybatis.xmlless.model.component

import com.wh1200.mybatis.xmlless.model.MethodInfo


/**
 *
 * @author 吴昊
 * @date 2023/12/4 22:38
 * @since v0.0.0
 * @version 1.0
 */
abstract class ISqlPart {

  open fun toSql(methodInfo: MethodInfo): String {
    return toSql()
  }

  /**
   * 对象转sql字符串
   */
  abstract fun toSql(): String

  override fun toString(): String {
    return toSql()
  }

}
